package com.ruoyi.project.cms.client.service;

import java.util.List;

import com.ruoyi.project.cms.client.domain.CmsClient;
import com.ruoyi.project.cms.client.mapper.CmsClientMapper;
import com.ruoyi.project.cms.client.service.ICmsClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.common.utils.text.Convert;


@Service
public class CmsClientServiceImpl implements ICmsClientService
{
    @Autowired
    private CmsClientMapper cmsClientMapper;

    /**
     * 查询clientCURD
     *
     * @param cid clientCURDID
     * @return clientCURD
     */
    @Override
    public CmsClient selectCmsClientById(Integer cid)
    {
        return cmsClientMapper.selectCmsClientById(cid);
    }

    /**
     * 查询clientCURD列表
     *
     * @param cmsClient clientCURD
     * @return clientCURD
     */
    @Override
    public List<CmsClient> selectCmsClientList(CmsClient cmsClient)
    {
        return cmsClientMapper.selectCmsClientList(cmsClient);
    }

    /**
     * 新增clientCURD
     *
     * @param cmsClient clientCURD
     * @return 结果
     */
    @Override
    public int insertCmsClient(CmsClient cmsClient)
    {
        return cmsClientMapper.insertCmsClient(cmsClient);
    }

    /**
     * 修改clientCURD
     *
     * @param cmsClient clientCURD
     * @return 结果
     */
    @Override
    public int updateCmsClient(CmsClient cmsClient)
    {
        return cmsClientMapper.updateCmsClient(cmsClient);
    }

    /**
     * 删除clientCURD对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteCmsClientByIds(String ids)
    {
        return cmsClientMapper.deleteCmsClientByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除clientCURD信息
     *
     * @param cid clientCURDID
     * @return 结果
     */
    @Override
    public int deleteCmsClientById(Integer cid)
    {
        return cmsClientMapper.deleteCmsClientById(cid);
    }
}
